package com.uyaer.card.battle
{
	import com.uyaer.card.battle.decorate.Background;
	import com.uyaer.card.battle.decorate.Frontground;
	import com.uyaer.card.common.Common;

	public class Battle
	{
		private static var m_instance:Battle = new Battle();
		
		private var background:Background;
		private var frontground:Frontground;
		
		public function Battle()
		{
		}
		public static function get instance():Battle{
			return m_instance;
		}
		
		public function start():void{
			background = new Background();
			frontground = new Frontground();
			Common.stage.addChild(background);
			Common.stage.addChild(frontground);
		}
		
		public function exit():void{
			background.destory();
			frontground.destory();
		}
	}
}